package org.sanmao.wyj.domain;


import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("orders")
public class Order {
    @TableId
    private int oid;
    @TableField(insertStrategy = FieldStrategy.NEVER)
    private int cid;
    private int uid;
    @TableField(insertStrategy = FieldStrategy.NEVER)
    private int wid;
    private String content;
    private double money;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    private int state;
    private int type;
    private String slocation;
    private String elocation;
    private String other;

    @TableField(exist = false)
    private String conment;
    @TableField(exist = false)
    private String workerName;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String userPhonenum;
    @TableField(exist = false)
    private String workerPhonenum;
}
